
class Animal{

    public String name ;
    public String color ;
    public int age ;
    public void eat(){
        System.out.println(this.name+ "正在吃饭");
    }


}

class Dog extends Animal{


    public void wangWang(){
        System.out.println(this.name+ "正在旺旺叫");
    }



}
class Car extends Animal{

    public void miMi(){
        System.out.println(this.name+ "正在喵喵叫");
    }



}
public class Test {
    public static void main(String[] args) {
        Car car = new Car() ;
        car.name = "猫" ;
        car.eat() ;
        Dog dog = new Dog() ;
        dog.name = "狗";
        dog.eat() ;

    }

}